﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StockTrader.FrontEnd.MarketViewer.DAL
{
    public partial class SessionData : Form
    {
        private frmMain _parrent;

        public SessionData(frmMain main)
        {
            InitializeComponent();
            this._parrent = main;
        }

        private void btnImport_Click(object sender, EventArgs e)
        {
            try
            {
                DALclient dac = new DALclient();
                DateTime transDate = dtSelected.Value;
                this.Close();
                //_parrent.GetSessionData(transDate);
            }
            catch
            {
                MessageBox.Show("Update fail. Please try gain latter!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
